!function(){function e(e){setTimeout(function(){n.totalProcessed.AUTOFOCUS_ON_LOAD=0,t(e),window.addEventListener("popstate",t,!1)},1500)}function t(e){var t=document.activeElement;t&&["INPUT","TEXTAREA"].includes(t.tagName)?(t.blur(),t.setAttribute(n.DATA_ATTRIBUTE_NAME,"autofocus"),i=1):i=0,n.totalProcessed.AUTOFOCUS_ON_LOAD=i,0!==i&&UserWayWidgetApp.ContextHolder.config.services.siteId,e({postMessageAppData:i,backEndData:null,countFixed:i||0,countTodo:i||0})}var r=UserWayWidgetApp.addLib("REMEDIATION_AUTOFOCUS_ON_LOAD"),n=UserWayWidgetApp.getLib("remediation"),i=(UserWayWidgetApp.getLib("util"),0);r.filter=function(e){return[]},r.awaitForResources=function(e,t){return Promise.resolve()},r.doRemediation=function(t,r){return new Promise(function(t,r){try{e(t)}catch(e){r(e)}})}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i1?1:n},t=function(t,r,n,i){void 0===i&&(i=!1);var o=new q,a=new F(t),u=new F(r),l=function(){var e=a.isLight(),t=u.isLight();if(e&&t||!e&&!t){if(a.luminance===u.luminance){var r=0===a.luminance,n=1===a.luminance;return!(!r||!i)||(!n||!i)&&e}return a.luminance>u.luminance}return e}(),s=e(n,u.luminance,l),c=t.slice(0,3).map(Number),d=o.rgbToXyz(c),f=__read(o.xyzToLab(d),3),p=(f[0],f[1]),h=f[2],m=o.findL(s)+(l?1:-1);return"rgb("+o.labToRgb([m,p,h]).join(",")+")"},r=[];(function(e,t){var r=function(e){return e[t]},n=t.split(".");return n.length>1&&(r=function(e){return n.reduce(function(e,t){return e[t]},e)}),e.reduce(function(e,t){var n=r(t),i=e.get(n)||[];return e.set(n,__spreadArray(__spreadArray([],__read(i),!1),[t],!1)),e},new Map)})(D.contrastIssues,"contrastData.backgroundColorParentElement").forEach(function(e,t){var n=__read(e),i=n[0],o=n.slice(1);!o.length||o.every(function(e){return e.contrastData.foreground[4]===i.contrastData.foreground[4]})?r.push(__assign(__assign({},i),{tagName:t.tagName,xpath:w.xpath(t),childrenIssues:e.map(function(e){return e.xpath})})):r=r.concat(e)}),D.contrastIssues=r.map(function(e){var r,n=e.expectedRatio,i=e.contrastData,o=i.foreground,a=i.background,u=a[4],l=new F(a);r=t(o,a,n);var s=f(r);return new F(s).contrast(l).ratio0&&-1===n.search(/^\s+$/i)&&(t=!0)}),(e instanceof HTMLInputElement&&e.value.length>0||e instanceof HTMLSelectElement&&e.options.length>0)&&(t=!0),t)}function d(e){return __awaiter(this,void 0,void 0,function(){var t,r,n,i;return __generator(this,function(o){switch(o.label){case 0:return t=p(e),[4,h(e)];case 1:return r=o.sent(),(n=r.backgroundColor,i=r.targetElement,t.join("")===n.join(""))?[2]:("0"===n[3]&&(n=["255","255","255","1","rgb(255, 255, 255)"]),R(i)&&(i=e),1===parseFloat(n[3])&&y(e,t,n,i),[2])}})})}function f(e){if(!e)return["0","0","0","0","rgba(0,0,0,0)"];var t=e.replace(/[^\d,.]/g,"").split(",");return t[3]||(t[3]="1"),t[4]=e,t}function p(e){return f(getComputedStyle(e).color)}function h(e){return __awaiter(this,void 0,void 0,function(){var t,r,n,i,o,a,u,l,s,c,d,p;return __generator(this,function(y){switch(y.label){case 0:if(t=getComputedStyle(e),r=document.body===e,n=t.background.indexOf("linear-gradient")>-1,i=t.backgroundImage.indexOf("url")>-1||t.background.indexOf("url")>-1,o=new RegExp(/rgba?\(((25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,\s*?){2}(25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,?\s*([01]\.?\d*?)?\)/g),a=function(e){return"rgba(0, 0, 0, 0)"===e||"transparent"===e},!r&&a(t.backgroundColor)&&!n&&!i)return[2,h(e.parentElement)];if(n&&a(t.backgroundColor)&&(u=(t.background.match(o)||[]).find(function(e){return!a(e)})),!i||!a(t.backgroundColor))return[3,6];if(l=[".svg"],s=l.some(function(e){return-1!==t.backgroundImage.indexOf(e)||-1!==t.background.indexOf(e)}))return[2,h(e.parentElement)];c=t.backgroundImage.indexOf("url")>-1?t.backgroundImage.slice(4,-1).replace(/['"]/g,""):t.background.match(/url\(["']?([^"']*)["']?\)/)[1],y.label=1;case 1:return y.trys.push([1,3,,5]),[4,m(c)];case 2:return u=y.sent(),[3,5];case 3:return d=y.sent(),[4,h(e.parentElement)];case 4:return[2,y.sent()];case 5:if("rgb(0,0,0)"===u)return[2,h(e.parentElement)];y.label=6;case 6:return p=f(u||t.backgroundColor),(+t.opacity<1||"none"!==t.filter)&&(p[3]=".1"),[2,{backgroundColor:p,targetElement:e}]}})})}function m(e){return new Promise(function(t,r){var n=document.createElement("canvas").getContext("2d"),i=new Image,o=function(e){return"rgb("+e.join(",")+")"};i.setAttribute("crossOrigin",""),i.src=e,i.addEventListener("load",function(){var e;n.imageSmoothingEnabled=!0,n.drawImage(i,0,0),e=n.getImageData(0,0,1,1).data.slice(0,3),t(o(e))}),i.addEventListener("error",function(t){console.warn("Image color recognition error:",e),r(t)})})}function y(e,t,r,n){var i={ratio:null,contrastRatio:null},o=new F(t),a=new F(r),u=o.contrast(a),l=u.ratio;if(l){i.ratio=Number(l),i.contrastRatio=l+":1";var s=window.getComputedStyle(e),c=s.getPropertyValue("font-size"),d=s.getPropertyValue("font-weight"),f=72*Number(c.substring(0,c.length-2))/96,p=f>=18||f>=14&&("bold"===d||parseInt(d)>=700),h=function(e){if(N){if(e&&l<4.5)return 4.5;if(l<7)return 7}return e&&l<3?3:l<4.5?4.5:null}(p);if(!h)return;D.contrastIssues.push({contrastData:{passRatio:h,ratio:b(i.ratio),foreground:t,background:r,backgroundColorParentElement:n},isLightFg:o.isLight(),isLightBg:a.isLight(),expectedRatio:h,tagName:e.tagName,xpath:w.xpath(e),fontSize:f})}}function g(e){var t=e.background,r=e.foreground,n=e.xpath;return __awaiter(this,void 0,void 0,function(){var e,i,o,a,u,l,s,c,d,f,m;return __generator(this,function(y){switch(y.label){case 0:return(e=S.recursiveXpathSearch(n))&&"boolean"!=typeof e?(i=p(e),[4,h(e)]):[2];case 1:return o=y.sent(),a=o.backgroundColor,u=o.targetElement,R(u)&&(u=e),l=window.getComputedStyle(e),s=l.getPropertyValue("font-size"),c=l.getPropertyValue("font-weight"),d=72*Number(s.substring(0,s.length-2))/96,f=d>=18||d>=14&&("bold"===c||parseInt(c)>=700),m=f?3:4.5,[2,{contrastData:{passRatio:m,ratio:m,foreground:i,background:a,backgroundColorParentElement:u},suggestion:{foreground:r,background:t},expectedRatio:m,tagName:e.tagName,xpath:n,fontSize:d}]}})})}function b(e){if(-1!==(e=String(e)).indexOf(".")){var t=e.split(".");return 1===t.length?Number(e):Number(t[0]+"."+t[1].charAt(0)+t[1].charAt(1))}return Number(e)}var v="REMEDIATION_COLOR_CONTRAST",A=UserWayWidgetApp.addLib(v),_=UserWayWidgetApp.getLib("remediation_helper_outcome"),E=UserWayWidgetApp.getLib("remediationConfig").contrast,w=UserWayWidgetApp.getLib("util"),x=UserWayWidgetApp.getLib("inlineStyling"),S=UserWayWidgetApp.getLib("xpath_search"),O="data-uw-rm-color-contrast",I={SMART_CONTRAST:"smc",AUTOFIX:"afix",PARSED:"prs",SET:"set"},W={color:"",background:""},L=!1,C=!1,N=!1,R=function(e){var t=getComputedStyle(e);return t.backgroundImage.indexOf("url")>-1||t.background.indexOf("url")>-1},k={},T=function(e){e.forEach(function(e){k[e.xpath]=e})},U=function(e){return Object.keys(k).filter(function(t){return!e||e.includes(t)}).map(function(e){return k[e]})},P=function(){k={}},D={foundedIssues:[],contrastIssues:[],acceptedFixes:[]},H=function(){return D.acceptedFixes.map(function(e){return e.xpath})},M=function(e){return e.hasAttribute(O)&&[I.AUTOFIX,I.SET].includes(e.getAttribute(O))};A.isSmartContrastEnabled=function(){return!!N},A.isEnabled=function(){return L},A.enable=function(){L=!0},A.disable=function(){L=!1},A.enableSmartContrast=function(){n(),N=!0,A.enable()},A.disableSmartContrast=function(){n(),N=!1,A.disable()},A.filter=function(e,r){return E.enabled&&(L||E.config.autofix)?(r.reset&&!A.isSmartContrastEnabled()&&i(),t()):[]},A.awaitForResources=function(t,r){return new Promise(function(n,i){e({resolve:n,reject:i,params:r,filteredElements:t})})},A.doRemediation=function(e,t){return new Promise(function(r,n){if(!t.length)return r(null);setTimeout(function(){return a({callbackAggregator:e,items:t,resolve:r,reject:n})},w.DELAYS.LONG)})},A.fixIssues=function(e,t){void 0===t&&(t=!0);var r=[];if(e.forEach(function(e){var t=e.xpath&&S.recursiveXpathSearch(e.xpath);if(t&&"boolean"!=typeof t){var n=e.childrenIssues,i=void 0===n?[]:n,o=__rest(e,["childrenIssues"]),a=i.map(function(e){return S.recursiveXpathSearch(e)}).filter(function(e){return!!e&&"boolean"!=typeof e});if(a.length)x.applyInlineStyles(t,O,{background:e.background}),t.setAttribute(O,I.SET),a.forEach(function(t,n){x.applyInlineStyles(t,O,{color:e.foreground}),t.setAttribute(O,I.SET),r.push(__assign(__assign({},o),{xpath:e.childrenIssues[n]}))});else{var u={color:e.foreground,background:e.background};x.applyInlineStyles(t,O,u),t.setAttribute(O,I.SET),r.push(e)}}}),t){D.acceptedFixes=D.acceptedFixes.concat(r);var n=H(),i=D.foundedIssues.filter(function(e){var t=e.xpath;return n.includes(t)});T(i),D.foundedIssues=D.foundedIssues.filter(function(e){var t=e.xpath;return!n.includes(t)})}},A.autofixAllIssues=function(){o().forEach(function(e){var t=e.xpath&&S.recursiveXpathSearch(e.xpath);if(t){var r=e.childrenIssues,n=void 0===r?[]:r,i=n.map(function(e){return S.recursiveXpathSearch(e)}).filter(Boolean);if(!M(t))if(i.length)x.applyInlineStyles(t,O,{background:e.suggestion.background}),t.setAttribute(O,I.AUTOFIX),i.forEach(function(t,r){x.applyInlineStyles(t,O,{color:e.suggestion.foreground}),t.setAttribute(O,I.AUTOFIX)});else{var o={color:e.suggestion.foreground,background:e.suggestion.background};x.applyInlineStyles(t,O,o),t.setAttribute(O,I.AUTOFIX)}}}),A.isSmartContrastEnabled()||(E.config.autofix=!0)},A.resetAutofixed=r,A.resetIssuesFixes=function(){i(),D.acceptedFixes=[],D.foundedIssues=D.foundedIssues.concat(U()),P()},A.run=u;var F=function(){function e(e){if(this.rgba=null,"transparent"===e)this.rgba=[0,0,0,0];else if("string"==typeof e){var t=e.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);if(!t)throw new Error("Invalid string: "+e);t.shift()}0===e[3]&&(e[3]=1),this.rgba=e.map(function(e){return j(e,3)})}return Object.defineProperty(e.prototype,"rgb",{get:function(){return this.rgba.slice(0,3)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.rgba[3]},set:function(e){this.rgba[3]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"luminance",{get:function(){for(var e=this.rgba.slice(),t=0;t<3;t++){var r=e[t];r=(r/=255)<.03928?r/12.92:Math.pow((r+.055)/1.055,2.4),e[t]=r}return.2126*e[0]+.7152*e[1]+.0722*e[2]},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.rgba)},e.prototype.isLight=function(){var e=(this.luminance+.05)/.05;return 1.05/(this.luminance+.05)=1)return t;for(var n=0;n<3;n++)t.rgba[n]=t.rgba[n]*r+e.rgba[n]*e.rgba[3]*(1-r);return t.rgba[3]=r+e.rgba[3]*(1-r),t},e.prototype.contrast=function(e){var t={ratio:null};if(this.alpha<1)return t;e.alpha<1&&(e=e.overlayOn(this));var r=this.luminance+.05,n=e.luminance+.05,i=r/n;return t.ratio=n>r?1/i:i,t},e}(),j=function(e,t){var r=Math.pow(10,t||0);return Math.round(e*r)/r},q=function(){function e(){this.D65=[95.047,100,108.883]}return e.prototype.rgbToXyz=function(e){var t=__read(e.map(function(e){return e/255}).map(this.sRGBtoLinearRGB),3),r=t[0],n=t[1],i=t[2];return[.4124*r+.3576*n+.1805*i,.2126*r+.7152*n+.0722*i,.0193*r+.1192*n+.9505*i].map(function(e){return 100*e})},e.prototype.sRGBtoLinearRGB=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},e.prototype.xyzToLab=function(e){var t,r=this,n=__read(e,3),i=n[0],o=n[1],a=n[2];return t=__read([i,o,a].map(function(e,t){return e/=r.D65[t],e>.008856?Math.pow(e,1/3):7.787*e+16/116}),3),i=t[0],o=t[1],a=t[2],[116*o-16,500*(i-o),200*(o-a)]},e.prototype.findL=function(e){return 116*Math.pow(e,1/3)-16},e.prototype.labToRgb=function(e){var t,r,n,i=(e[0]+16)/116,o=e[1]/500+i,a=i-e[2]/200;return o=.95047*(o*o*o>.008856?o*o*o:(o-16/116)/7.787),i=1*(i*i*i>.008856?i*i*i:(i-16/116)/7.787),a=1.08883*(a*a*a>.008856?a*a*a:(a-16/116)/7.787),t=3.2406*o+-1.5372*i+-.4986*a,r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*Math.max(0,Math.min(1,t)),255*Math.max(0,Math.min(1,r)),255*Math.max(0,Math.min(1,n))].map(function(e){return j(e)})},e}()}(),function(){function e(){var e=UserWayWidgetApp.ContextHolder.config,t=e._userway_config.hasOwnProperty("ai_custom_focus_style_enabled");return t?t&&(!0===e._userway_config.ai_custom_focus_style_enabled||"true"===e._userway_config.ai_custom_focus_style_enabled):l.enabled}function t(e){var t={outline:l.outlineWidth+" "+l.outlineStyle+" "+l.outlineColor};return t["outline-offset"]="-"+l.outlineWidth,t}function r(e){if("function"==typeof e.hasAttribute&&e.hasAttribute(d)){var r=window.getComputedStyle(e),n=t(r);s.resetInlineStyles(e,d,n),e.removeAttribute(d)}}function n(e){e.target&&p&&u.addStyles(e.target)}function i(e){var t=e?"addEventListener":"removeEventListener";document[t]("mousedown",o),document[t]("keydown",a),document[t]("focusin",n),document[t]("focusout",h)}function o(){p=!1}function a(){p=!0}var u=UserWayWidgetApp.addLib("REMEDIATION_FOCUS_STYLE"),l=UserWayWidgetApp.getLib("remediationConfig").customFocus,s=UserWayWidgetApp.getLib("inlineStyling"),c=UserWayWidgetApp.getLib("remediation_utils"),d="data-uw-rm-outline",f={width:"2px",color:" #0018FF",style:"solid"},p=!1;u.apply=function(){var t,r,n,o;if(e()){var a=null===(n=null===(r=null===(t=UserWayWidgetApp.ContextHolder)||void 0===t?void 0:t.config)||void 0===r?void 0:r.tunings)||void 0===n?void 0:n.widget_color,u=(null===(o=UserWayWidgetApp.getLib("remediationConfig").customFocus.config)||void 0===o?void 0:o.style)?JSON.parse(UserWayWidgetApp.getLib("remediationConfig").customFocus.config.style):f;l.outlineWidth=u.width,l.outlineColor=u.color||a,l.outlineStyle=u.style,setTimeout(function(){i(!0)},500)}},u.getFocusStyle=function(){return{enabled:e(),outlineWidth:l.outlineWidth||f.width,outlineColor:l.outlineColor||f.color,outlineStyle:l.outlineStyle||f.style}},u.updateOutlineStyle=function(e){if(e.data&&(e.data.update||null!=e.data.enabled)){var t=e.data.update,n=e.data.enabled;l.outlineWidth=t.width,l.outlineStyle=t.style,l.outlineColor=t.color,l.enabled!==n&&(i(l.enabled),[].slice.call(document.querySelectorAll("["+d+"]")).forEach(function(e){r(e)}),l.enabled=n)}},u.addStyles=function(e){if(!e.hasAttribute(c.ignoreElementFromHelperProcessingAttr)){var r=window.getComputedStyle(e),n=t(r);s.applyInlineStyles(e,d,n),e.setAttribute(d,"")}};var h=function(e){e.target&&r(e.target)}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){var e=UserWayWidgetApp.addLib("REMEDIATION_HAMBURGER_MENU"),t=UserWayWidgetApp.getLib("remediation_util"),r=UserWayWidgetApp.getLib("event_emitter");e.apply=function(){r.on("UW_CER_HAMBURGER_IN",function(e){var r=__read(e,2),n=r[0],i=r[1];n.setAttribute("tabindex","0"),n.addEventListener("keydown",function(e){t.keys.isEnter(e)&&(setTimeout(function(){var e,r,n,o,a=i.filter(function(e){return t.isElementVisible(e,{skipParentCheck:!0})});try{for(var u=__values(a),l=u.next();!l.done;l=u.next()){var s=l.value,c=s.querySelectorAll("a");try{for(var d=(n=void 0,__values(c)),f=d.next();!f.done;f=d.next()){f.value.setAttribute("tabindex","0")}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}a.length&&a[0].querySelector("a").focus()},800),e.preventDefault(),n.click())})})}}(),function(){function e(){var e=document.querySelector("["+u+"]");null===e||void 0===e||e.removeAttribute(u)}function t(){var e,t=document.querySelector("title");return!t||!(null===(e=t.innerHTML)||void 0===e?void 0:e.trim())&&!t.hasAttribute(u)}function r(){var e=function(e){return e.length>1?e.slice(0,-1):e},t=window.location,r=t.hostname,n=t.href,i=t.host,o=r.replace("www.","").split("."),a=e(o).join("-"),u=n.split(i).pop().split("/").join(" "),l=u.split("?"),s=e(l).join(" ").replace(/^\d+|\s\d+/g,"").trim();return(s+(s?" - ":" ")+a).trim()}function n(e){var t=e.callbackAggregator,n=e.resolve,o=e.reject,s=e.items;try{t.onHelperRemediationStarted(i),s.forEach(function(e){var t=r(),n=e.querySelector("title");if(n)n.innerHTML=t;else{var i=e.createElement("title");i.innerHTML=t,e.head.appendChild(i)}e.querySelector("title").setAttribute(u,t?l.GENERIC:l.UNKNOWN)}),t.onHelperRemediationCompleted(a.of(i,null,null,s.length,0)),n()}catch(e){o(e)}}var i="REMEDIATION_HEADER_TITLE",o=UserWayWidgetApp.addLib(i),a=UserWayWidgetApp.getLib("remediation_helper_outcome"),u="data-uw-rm-title",l={UNKNOWN:"un",GENERIC:"gn"};o.filter=function(r,n){return n.reset&&e(),t()?[document]:[]},o.awaitForResources=function(){return Promise.resolve()},o.doRemediation=function(e,t){return new Promise(function(r,i){n({callbackAggregator:e,items:t,resolve:r,reject:i})})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};!function(){function e(e){e.forEach(function(e){var t=null!=e.page?e.page:"$all";y[e.type]=y[e.type]||{},y[e.type][t]=y[e.type][t]||{},e.xpath?y[e.type][t][e.xpath]=e:y[e.type][t]=e})}function t(t,r,n){return c?(UserWayWidgetApp.ContextHolder.remediationResources&&e(UserWayWidgetApp.ContextHolder.remediationResources.Headings),t()):t()}function r(){var e=document.querySelector("["+d+'="h1"]');e&&e.parentElement.removeChild(e),[].slice.call(document.querySelectorAll("["+d+'="level"]')).forEach(function(e){e.removeAttribute(d),e.removeAttribute("aria-level"),e.removeAttribute("role")});var t=[].slice.call(document.querySelectorAll("["+d+'="hide"]'));t.length&&t.forEach(function(e){e.removeAttribute(d),e.removeAttribute("aria-hidden"),e.removeAttribute("role");var t=e.querySelector(".uw-ai-autofix-hide");t&&e.removeChild(t)})}function n(e,t){e.setAttribute("role","heading"),e.setAttribute("aria-level",""+t),e.setAttribute(d,"level")}function i(e){var t=document.createElement("h1"),r=document.querySelector("main"),i=document.querySelector("[role=main]"),o=r||i;if(o){var a=y["ADD-H1"]&&y["ADD-H1"].$all,u=y["ADD-H1"]&&y["ADD-H1"][e],l=!!u,s=u||a,c=s&&s.correction?s.correction:document.title;return n(t,1),t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px)!important;height:1px!important;width:1px!important;overflow:hidden!important;position:absolute!important;top:0!important;left:0!important;z-index:-1!important;opacity:0!important"),t.setAttribute(d,"h1"),t.setAttribute("id","userway-h1-heading"),t.setAttribute("data-uw-rm-ignore",""),t.innerText=c,o.prepend(t),m.push({type:"ADD-H1",level:1,previousLevel:0,content:c,autofix:!0,approved:l,xpath:h.xpath(t)}),[t,!!s]}return[null,!1]}function o(e){return/(h\d)/i.test(e.nodeName)?+e.nodeName.slice(1):+e.getAttribute("aria-level")}function a(e,t,r,a){if(e.onHelperRemediationStarted("REMEDIATION_HEADING"),m=[],c){var u=location.pathname;if(a.length||i(u),a.length){if(!("H1"===a[0].nodeName||a[0].hasAttribute("aria-level")&&"1"===a[0].getAttribute("aria-level"))){var l=__read(i(u),1),s=l[0];s&&a.unshift(s)}for(var g=void 0,b=0,v=void 0,A=0,_=a.length;A<_;A++){if(!a[A].hasAttribute(f)){var E=h.xpath(a[A]);g=o(a[A]);var w=h.composeElementTextRepresentation(a[A]);if(1===g&&a[A].hasAttribute(d))b=1;else if(v={type:"CONTENT",level:g,content:w,approved:!0,xpath:E,autofix:!0},w&&1===g&&0!==A&&(a[A].setAttribute("role","heading"),a[A].setAttribute("aria-level","2"),a[A].setAttribute(d,"level"),v.previousLevel=1,v.approved=!1,v.type="LEVEL",g=2,v.level=2),w&&w.trim())if(g>b+1){var x=y.LEVEL&&y.LEVEL[u]&&y.LEVEL[u][E]&&y.LEVEL[u][E].correction,S=!!x&&y.LEVEL[u][E].approved;v.previousLevel=g,v.approved=!1;var O=b+1;v.type="LEVEL",a[A].setAttribute(d,"level"),v.level=O,n(a[A],O),b++,v.approved=S,m.push(v)}else b=g,m.push(v);else{a[A].setAttribute("role","presentation"),a[A].setAttribute("aria-hidden",!0),h.addScreenRearedElement(a[A],"Empty heading","data-uw-rm-autofix-hide"),v.type="HIDE",a[A].setAttribute(d,"hide");var I=y.HIDE&&y.HIDE.$all&&y.HIDE.$all[E],W=y.HIDE&&y.HIDE[u]&&y.HIDE[u][E],L=W||I;v.approved=!!L&&L.approved,m.push(v)}}}}}e.onHelperRemediationCompleted(p.of("REMEDIATION_HEADING",{items:m},null,c?0:[].slice.call(document.querySelectorAll("["+d+"]")).length,0)),t()}var u=UserWayWidgetApp.addLib("REMEDIATION_HEADING"),l=UserWayWidgetApp.ContextHolder.config,s=UserWayWidgetApp.getLib("remediationConfig").headings||{},c=s.enabled&&l.partner!==atob("c2hvcnRwb2ludA=="),d="data-uw-rm-heading",f="data-uw-ignore-rm-heading",p=UserWayWidgetApp.getLib("remediation_helper_outcome"),h=UserWayWidgetApp.getLib("util"),m=[],y={};u.filter=function(e){return c?(r(),[].slice.call(document.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]')).filter(function(e){return!e.hasAttribute("data-uw-rm-ae")})):[]},u.awaitForResources=function(e,r){return new Promise(function(e,n){t(e,n,r)})},u.doRemediation=function(e,t){return new Promise(function(r,n){a(e,r,n,t)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t=__spreadArray(__spreadArray(["a"],__read(s),!1),__read(s.map(function(e){return'[role="'+e+'"]'})),!1).join(",");return e.querySelectorAll(t).length>0}function t(t){return t.filter(function(t){var r,n,i,a,h,m,y,g;if("function"==typeof t.hasAttribute&&t.hasAttribute(u)||e(t))return!1;if(t.classList&&t.classList.contains("betterbot_botInfoText"))return t.setAttribute(u,l.BETTERBOT_CHAT),!0;if("function"==typeof t.getAttribute&&s.indexOf(t.getAttribute("role"))>-1&&!t.hasAttribute("tabindex"))return t.setAttribute(u,l.HAS_ROLE_NO_TABINDEX),!0;var b=!1,v=!1;if("function"==typeof t.hasAttribute)try{for(var A=__values(c),_=A.next();!_.done;_=A.next()){var E=_.value;if(t.hasAttribute(E)&&!o.isElementEditable(t)){v=!1,b=!0;try{for(var w=(i=void 0,__values(d)),x=w.next();!x.done;x=w.next()){var S=x.value;t.hasAttribute(S)&&(v=!0)}}catch(e){i={error:e}}finally{try{x&&!x.done&&(a=w.return)&&a.call(w)}finally{if(i)throw i.error}}}}}catch(e){r={error:e}}finally{try{_&&!_.done&&(n=A.return)&&n.call(A)}finally{if(r)throw r.error}}if(b&&!v)return t.setAttribute(u,l.HAS_ONCLICK_NO_ONKEYPRESS),!0;var O=!1,I=!1,W=!1,L=["drag-and-drop"];if("function"==typeof t.hasAttribute){W=t.hasAttribute("tabindex");try{for(var C=__values(f),N=C.next();!N.done;N=C.next()){var E=N.value;if(L.indexOf(t.nodeName.toLowerCase())<0&&t.hasAttribute(E)&&!o.isElementEditable(t)){I=!1,O=!0;try{for(var R=(y=void 0,__values(p)),k=R.next();!k.done;k=R.next()){var S=k.value;t.hasAttribute(S)&&(I=!0)}}catch(e){y={error:e}}finally{try{k&&!k.done&&(g=R.return)&&g.call(R)}finally{if(y)throw y.error}}}}}catch(e){h={error:e}}finally{try{N&&!N.done&&(m=C.return)&&m.call(C)}finally{if(h)throw h.error}}}return!O||I||W?!("A"!==t.tagName||t.href||t.hasAttribute("tabindex")||t.hasAttribute("role"))&&(t.setAttribute(u,l.ANCHOR_NO_HREF),!0):(t.setAttribute(u,l.HAS_NGCLICK_NO_NGKEYPRESS),!0)})}function r(e,t,r,n,a){try{e.onHelperRemediationStarted("REMEDIATION_KEYBOARD_NAVIGATION");var s=0;n.forEach(function(e){var t=e.getAttribute(u);if(t)return s++,t===l.BETTERBOT_CHAT?(e.setAttribute("tabindex","0"),e.setAttribute("role","button"),e.setAttribute("aria-label","Start chat with us"),void o.clickOnEnter(e)):t===l.HAS_ROLE_NO_TABINDEX?(e.setAttribute("tabindex","0"),void o.clickOnEnter(e)):t===l.OVERFLOW_HELPER?void e.setAttribute("tabindex","0"):t===l.HAS_ONCLICK_NO_ONKEYPRESS?void o.clickOnEnter(e):t&&e.getAttribute(u)===l.HAS_NGCLICK_NO_NGKEYPRESS?(e.setAttribute("role","button"),e.setAttribute("tabindex","0"),void o.clickOnEnter(e)):t===l.ANCHOR_NO_HREF?(e.setAttribute("tabindex","0"),void("pointer"===window.getComputedStyle(e).cursor&&o.clickOnEnter(e))):void 0}),e.onHelperRemediationCompleted(i.of("REMEDIATION_KEYBOARD_NAVIGATION",null,null,s,0)),t()}catch(e){r(e)}}var n=UserWayWidgetApp.addLib("REMEDIATION_KEYBOARD_NAVIGATION"),i=UserWayWidgetApp.getLib("remediation_helper_outcome"),o=UserWayWidgetApp.getLib("remediation_util"),a=UserWayWidgetApp.getLib("util"),u="data-uw-rm-kbnav",l={BETTERBOT_CHAT:"betterbot", HAS_ROLE_NO_TABINDEX:"role",HAS_ONCLICK_NO_ONKEYPRESS:"click",HAS_NGCLICK_NO_NGKEYPRESS:"ngclick",OVERFLOW_HELPER:"scrollTabIndex",ANCHOR_NO_HREF:"anohref"},s=["link","button","menuitem","checkbox"],c=["onclick"],d=["onkeydown","onkeyup","onkeypress"],f=["ng-click"],p=["ng-keypress","ng-keyup","ng-keydown"];n.filter=function(e,r){return r.reset,t([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(a.findAllElements(e))})),!1)))},n.awaitForResources=function(e,t){return Promise.resolve()},n.doRemediation=function(e,t,n){return new Promise(function(i,o){r(e,i,o,t,n)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){window.userwayLabs&&window.userwayLabs.remediate(e)}var t=UserWayWidgetApp.addLib("REMEDIATION_LABS"),r=UserWayWidgetApp.getLib("remediationConfig"),n=UserWayWidgetApp.getLib("util");t.apply=function(){var t,i,o;try{(null===(t=r.labs)||void 0===t?void 0:t.enabled)&&Object.keys(null!==(o=null===(i=r.labs)||void 0===i?void 0:i.config)&&void 0!==o?o:[]).length>0&&n.execJs("https://cdn.userway.org/widgetapp/2024-10-08-15-28-17/bundles/labs-02.js").finally(function(){setTimeout(function(){var t,n,i=r.labs.config;try{for(var o=__values(i),a=o.next();!a.done;a=o.next()){e(a.value)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},100)})}catch(e){console.info("LabsRemediationLoader",e)}}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){e.forEach(function(e){g[e.pdf_hash]=e})}function t(){[].slice.call(document.querySelectorAll("["+d+"]")).forEach(function(e){e.removeAttribute(d)})}function r(e){return o(e)}function n(e,t,r,n){try{e.onHelperRemediationStarted("REMEDIATION_PDF_DOCUMENTS");var o=[],a=[],l=[];n.forEach(function(e,t){var r,n=!!(null===(r=e.href.split("?")[1])||void 0===r?void 0:r.includes(".pdf")),s=n?e.href:e.href.split("?")[0],c=u.hashString(s),m=i(e.href),b=e.hasAttribute(f);if(g[c]){var v=g[c].rem_url;v&&!b&&(e.setAttribute(p,e.href),e.href=y+v),l.indexOf(s)<0&&(a.push(Object.assign({},g[c],{name:m,pdf_url:s,pdf_link:e.innerText,pdf_isDone:!!v||b})),l.push(s))}else{var A=e.hasAttribute(h)&&"1"===e.getAttribute(h),_=e.hasAttribute(h)&&"0"===e.getAttribute(h);A&&!b&&o.push({hash:c,url:s}),l.indexOf(s.toLowerCase())<0&&(a.push({pdf_url:e.href,pdf_hash:c,pdf_link:e.innerText,name:m,status:b?"DONE":null,validityCheckFailed:_,id:"not_created-"+t,pdf_isDone:b}),l.push(s.toLowerCase()))}e.setAttribute(d,"")}),e.onHelperRemediationCompleted(c.of("REMEDIATION_PDF_DOCUMENTS",{items:a},{items:o,path:m,props:{page:location.pathname}},a.length,a.length)),t()}catch(e){r(e)}}function i(e){return e.substring(e.lastIndexOf("/")+1)}function o(e){return e.filter(function(e){var t,r;if(!e||e.nodeType!==Node.ELEMENT_NODE||"A"!==e.nodeName)return!1;if(e.hasAttribute(d))return!1;if(e.hasAttribute(p))return!1;var n=e.href?e.href.split("?")[0]:null;if(!n)return!1;if(null===n||void 0===n?void 0:n.match(/\.pdf($|\?)/))return!0;var i=new URLSearchParams(e.href);try{for(var o=__values(i.entries()),a=o.next();!a.done;a=o.next()){var u=__read(a.value,2),l=u[1];if(null===l||void 0===l?void 0:l.match(/\.pdf($|\?)/))return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!1})}var a=UserWayWidgetApp.addLib("REMEDIATION_PDF_DOCUMENTS"),u=UserWayWidgetApp.getLib("util"),l=UserWayWidgetApp.getLib("remediationConfig").pdf||{},s=UserWayWidgetApp.getLib("remediation_utils"),c=UserWayWidgetApp.getLib("remediation_helper_outcome"),d="data-uw-pdf-doc",f="data-uw-pdf-rem",p="data-uw-pdf-doc-original",h="data-uw-pdf-br",m="pdf",y="https://cdn.userway.org/",g={};a.filter=function(e,n){return l.enabled?(n.reset&&t(),r([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("a[href]"))})),!1)))):[]},a.awaitForResources=function(t,r){return new Promise(function(r,n){var i,o;if(!l.enabled)return r(!0);UserWayWidgetApp.ContextHolder.remediationResources&&UserWayWidgetApp.ContextHolder.remediationResources.Pdfs&&e(UserWayWidgetApp.ContextHolder.remediationResources.Pdfs);var a=[];try{for(var u=__values(t),c=u.next();!c.done;c=u.next()){var d=c.value;!d.hasAttribute(h)&&a.indexOf(d)<0&&a.push(d)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return a.length?l.config.quotaExceeded?(a.forEach(function(e){e.setAttribute(h,"2")}),r(!0)):void s.sendBackEnd("/br-links/v0/pdf-links",null,{page:location.pathname,fullPage:location.href,links:a.map(function(e){return e.href})}).then(function(e){var t=e&&e.response&&JSON.parse(e.response);a.forEach(function(e,r){var n=t.statuses[r];[0,1,2].indexOf(n)>-1&&e.setAttribute(h,""+n)}),r(!0)}).catch(function(e){return n(e)}):r(!0)})},a.doRemediation=function(e,t,r){return new Promise(function(r,i){n(e,r,i,t)})}}(),function(){var e=UserWayWidgetApp.addLib("REMEDIATION_PER_SITE"),t=UserWayWidgetApp.getLib("remediationConfig"),r=UserWayWidgetApp.getLib("util");e.apply=function(){t.perSiteRemediation&&t.perSiteRemediation.enabled&&t.perSiteRemediation.resources&&r.execJs(t.perSiteRemediation.resources).finally(function(){r.fireUserWayLifeCycleEvent(r.LIFE_CYCLE_EVENT.REMEDIATION_CSR_LOADED)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function t(e){var t=Array.from(e.children),r=t.filter(function(e){return"LI"===e.tagName&&!e.hasAttribute("role")});if(r.length)return r;var n=t.filter(function(e){return!e.hasAttribute("role")&&(["A","BUTTON"].includes(e.tagName)||e.hasAttribute("tabindex"))});return n.length?n:[]}function r(){var r,n,i=0,o=Array.from(document.querySelectorAll('*[role="menu"], *[role="menubar"]'));try{for(var a=__values(o),u=a.next();!u.done;u=a.next()){var l=u.value;!function(r){var n,o;if(!r.hasAttribute(y)){r.setAttribute(y,"");if(!Array.from(r.querySelectorAll('*[role="menuitem"], *[role="menuitemcheckbox"], *[role="menuitemradio"]')).length){i++;var a=t(r);try{for(var u=(n=void 0,__values(a)),l=u.next();!l.done;l=u.next()){var s=l.value;s.setAttribute("role","menuitem"),s.setAttribute(y,"menuitem")}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}if(!a.length&&!e(r)){var c=r.getAttribute("role");r.setAttribute(y+"-role",c),r.removeAttribute("role"),h.onElementVisible(r,function(){if(r.hasAttribute(y+"-role")){var e=r.getAttribute(y+"-role");r.removeAttribute(y+"-role"),r.setAttribute("role",e)}})}}}}(l)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}function n(){i("aria-labelledby"),i("aria-describedby")}function i(e){Array.from(document.querySelectorAll("*["+y+"-"+e+"]")).forEach(function(t){var r=t.getAttribute(y+"-"+e).split(" "),n=[],i=[];r.forEach(function(e){document.getElementById(e)?n.push(e):i.push(e)}),n.length&&t.setAttribute(e,n.join(" ")),i.length?i.length!==r.length&&t.setAttribute(y+"-"+e,i.join(" ")):t.removeAttribute(y+"-"+e)})}function o(){var e=0;return e+=a("aria-labelledby"),e+=a("aria-describedby")}function a(e){var t=0;return Array.from(document.querySelectorAll("*["+e+"]")).forEach(function(r){if(!r.hasAttribute(y)){var n=r.getAttribute(e).split(" "),i=[],o=[];n.forEach(function(e){document.getElementById(e)?i.push(e):o.push(e)}),o.length&&(r.setAttribute(y+"-"+e,o.join(" ")),i.length?r.setAttribute(e,i.join(" ")):r.removeAttribute(e)),t+=o.length}}),t}function u(e){var t=e.tagName.toLowerCase();if("s"===t||"strike"===t||"del"===t)return!0;var r=window.getComputedStyle(e);if(!!r.getPropertyValue("text-decoration")&&r.getPropertyValue("text-decoration").indexOf("line-through")>-1)return!0;var n=e.parentElement;return!(!n||"BODY"===n.tagName.toUpperCase())&&u(n)}function l(){var e,t,r=0,n=m.ElementsWithText.getElementsWithText(document,!1);try{for(var i=__values(n),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a.hasAttribute(y)){var l=h.customTrim(a.innerText),s=l.match(/(?:[\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6])(?:[^0-9.]*)([\d,.]+)/);l&&s&&s.length&&(a.setAttribute(y,""),u(a)&&(a.setAttribute("aria-label","Previous price was "+s[0]),a.setAttribute(y,"price"),r++))}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r}function s(){[].slice.call(document.querySelectorAll("["+y+"]")).forEach(function(e){e.removeAttribute(y)})}function c(e){for(var t=e,r=!1;t&&"BODY"!==t.tagName.toUpperCase();){if(t.hasAttribute("contenteditable")){r=!0;break}t=t.parentElement}return r}function d(e){return e.filter(function(e){return!e.hasAttribute("role")&&(!c(e)&&!e.hasAttribute(y))})}var f=UserWayWidgetApp.addLib("REMEDIATION_SCREEN_READER_BASIC"),p=UserWayWidgetApp.getLib("remediation_helper_outcome"),h=UserWayWidgetApp.getLib("util"),m=UserWayWidgetApp.getLib("helpers"),y="data-uw-rm-sr";f.filter=function(e,t){return t.reset&&s(),d([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("br,hr"))})),!1)))},f.awaitForResources=function(e,t){return Promise.resolve()},f.doRemediation=function(e,t,i){return new Promise(function(i,a){try{e.onHelperRemediationStarted("REMEDIATION_SCREEN_READER_BASIC"),t.forEach(function(e){e.setAttribute("role","presentation"),e.setAttribute(y,"")});var u=l();n();var s=o(),c=r();e.onHelperRemediationCompleted(p.of("REMEDIATION_SCREEN_READER_BASIC",null,null,t.length+u+s+c,0)),i(!0)}catch(e){a(e)}})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t=e.checked,r=e.readOnly,n=e.required,i=e.disabled,o=e.hidden,a=e.getAttribute("aria-checked"),u=e.getAttribute("aria-readonly"),l=e.getAttribute("aria-required"),s=e.getAttribute("aria-disabled"),c=e.getAttribute("aria-hidden");t&&"true"!==a&&(e.ariaChecked=!0),t||"false"===a||(e.ariaChecked=!1),r&&"true"!==u&&(e.ariaReadOnly=!0),r||"false"===u||(e.ariaReadOnly=!1),n&&"true"!==l&&(e.ariaRequired=!0),n||"false"===l||(e.ariaRequired=!1),i&&"true"!==s&&(e.ariaDisabled=!0),i||"false"===s||(e.ariaDisabled=!1),o&&"true"!==c&&(e.ariaHidden=!0),o||"false"===c||(e.ariaHidden=!1)}function t(t){var r=function(r){var n,i;try{for(var o=__values(r),a=o.next();!a.done;a=o.next()){"attributes"===a.value.type&&e(t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},n=new MutationObserver(r),i={attributes:!0,childList:!1,subtree:!1};n.observe(t,i)}var r=UserWayWidgetApp.addLib("REMEDIATION_ANGULAR_JS_ARIA");r.filter=function(e,t){return[]},r.awaitForResources=function(e,t){return Promise.resolve()},r.doRemediation=function(r,n,i){var o=document.querySelectorAll("[ng-show], [ng-hide], [ng-value], [ng-checked], [ng-readonly], [ng-required], [ng-model], [ng-disabled]");return new Promise(function(r){var n,i;try{for(var a=__values(Array.from(o)),u=a.next();!u.done;u=a.next()){var l=u.value;e(l),t(l)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}r(!0)})}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){var e=UserWayWidgetApp.addLib("remediation_util"),t=UserWayWidgetApp.getLib("util");e.focusableElementsSelector="\n a[href]:not([tabindex='-1']), \n area[href]:not([tabindex='-1']), \n audio[controls]:not([tabindex='-1']), \n button:not([disabled], [tabindex='-1']), \n details:not([tabindex='-1']) summary:not([tabindex='-1']), \n input:not([disabled], [type=hidden], [tabindex='-1']), \n iframe:not([tabindex='-1']), \n select:not([disabled], [tabindex='-1']), \n textarea:not([disabled], [tabindex='-1']), \n video[controls]:not([tabindex='-1']), \n [tabindex]:not([disabled], [tabindex='-1']), \n [contenteditable='']:not([disabled], [tabindex='-1']),\n [contenteditable='true']:not([disabled], [tabindex='-1'])\n ",e.keys={isRightShift:function(e){return 16===e.keyCode||"Shift"===e.key||"ShiftRight"===e.code},isLeftShift:function(e){return 16===e.keyCode||"Shift"===e.key||"ShiftLeft"===e.code},isSpace:function(e){return 32===e.keyCode||" "===e.key||"Space"===e.code},isEnter:function(e){return 13===e.keyCode||"Enter"===e.key||"Enter"===e.code},isEsc:function(e){return 27===e.keyCode||"Escape"===e.key||"Escape"===e.code},isTab:function(e){return 9===e.keyCode||"Tab"===e.key||"Tab"===e.code},isHome:function(e){return 36===e.keyCode||"Home"===e.key||"Home"===e.code},isEnd:function(e){return 35===e.keyCode||"End"===e.key||"End"===e.code},isPageUp:function(e){return 33===e.keyCode||"PageUp"===e.key||"PageUp"===e.code},isPageDown:function(e){return 34===e.keyCode||"PageDown"===e.key||"PageDown"===e.code},isArrowLeft:function(e){return 37===e.keyCode||"ArrowLeft"===e.key||"ArrowLeft"===e.code},isArrowUp:function(e){return 38===e.keyCode||"ArrowUp"===e.key||"ArrowUp"===e.code},isArrowRight:function(e){return 39===e.keyCode||"ArrowRight"===e.key||"ArrowRight"===e.code},isArrowDown:function(e){return 40===e.keyCode||"ArrowDown"===e.key||"ArrowDown"===e.code},isPrintableChar:function(e){return 1===e.key.length&&e.key.match(/\S/)}},e.log=function(e,t,r){console.warn("UserWay remediation "+e+" - "+t+": "+r)},e.generateRandomId=t.generateRandomId,e.isElementEditable=function(e){function t(e){var t=e.nodeName.toLowerCase();return!!e.hasAttribute("contenteditable")||1===e.nodeType&&("textarea"===t||"input"===t&&/^(?:text|email|number|search|tel|url|password)$/i.test(e.type))}var r,n,i=t(e);if(i)return!0;try{for(var o=__values(Array.from(e.querySelectorAll("*"))),a=o.next();!a.done;a=o.next()){if(i=t(a.value))break}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.waitUntil=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),r=__assign({timeout:8e3,frequency:1e3},r||{});var i=Date.now();!function o(){var a=e();if(a)return t(a);setTimeout(function(){if(r.timeout&&Date.now()-i>r.timeout)return void(n&&n());o()},r.frequency)}()},e.trapFocusBetweenElements=function(t,r,n){void 0===n&&(n=null);var i=!1;window.addEventListener("keydown",function(t){e.keys.isLeftShift(t)&&(i=!0)}),window.addEventListener("keyup",function(t){e.keys.isLeftShift(t)&&(i=!1)}),t.setAttribute("tabindex","0"),document.activeElement&&n.contains(document.activeElement)||t.focus(),t.addEventListener("keydown",function(t){e.keys.isTab(t)&&i&&(t.preventDefault(),r.focus())}),r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(r){e.keys.isTab(r)&&(i||(r.preventDefault(),t.focus()))})},e.trapFocusPopupElements=function(t,r){void 0===r&&(r=null);var n=!1;window.addEventListener("keydown",function(t){e.keys.isLeftShift(t)&&(n=!0)}),window.addEventListener("keyup",function(t){e.keys.isLeftShift(t)&&(n=!1)});var i=t[0],o=t[t.length-1];document.activeElement&&r.contains(document.activeElement)||i.focus(),t.forEach(function(r,a){r.addEventListener("keydown",function(r){e.keys.isTab(r)&&(r.preventDefault(),n?(t[a-1]?t[a-1]:o).focus():(t[a+1]?t[a+1]:i).focus())})})},e.trapFocusBetween=function(e){function t(e,t,n){if(9===n.keyCode)return r?t&&t.focus():e&&e.focus(),n.preventDefault();16===n.keyCode&&(r=!0)}for(var r=!1,n=[],i=0;i=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth),o=0===n.width||0===n.height;return(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)&&(!t.shouldBeInViewport||i)&&!o&&"0"!==r.opacity&&"hidden"!==r.visibility&&"collapse"!==r.visibility},n=r(e,t);if(!t.skipParentCheck)for(;n&&e.parentNode&&e.parentNode!==document;)r(e.parentNode,{shouldBeInViewport:!1})?e=e.parentNode:n=!1;return n},e.fireEvent=function(e,t){if(e.fireEvent)e.fireEvent("on"+t);else{var r=document.createEvent("Events");r.initEvent(t,!0,!1),e.dispatchEvent(r)}},e.clickOnEnter=function(t){t&&"function"==typeof t.click&&!e.isElementEditable(t)&&t.addEventListener("keydown",function(r){e.keys.isEnter(r)&&(r.preventDefault(),t.click())})},e.clickOnSpace=function(t){t&&"function"==typeof t.click&&!e.isElementEditable(t)&&t.addEventListener("keydown",function(r){e.keys.isSpace(r)&&(r.preventDefault(),t.click())})},e.execOnPage=function(e,t){var r,n,i;if(Array.isArray(e))try{for(var o=__values(e),a=o.next();!a.done;a=o.next()){var u=a.value;if(i=new RegExp(u).test(window.location.href)){t();break}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}else(i=new RegExp(e).test(window.location.href))&&t();return i},e.getFocusableElement=function(t,r,n){t=t||"next",n=n||{},n.childrenOnly=n.childrenOnly||!1,n.canBeHidden=n.canBeHidden||!1;var i=Array.from((n.childrenOnly?r:document).querySelectorAll(e.focusableElementsSelector+(r?","+e.getCssPath(r):"")));n.canBeHidden||(i=i.filter(function(e){return!!e.offsetParent}));var o=i.findIndex(function(e){return!(!r||e!==r)||e===document.activeElement});return"next"===t?i[o+1]||i[0]:"prev"===t?i[o-1]||i[i.length-1]:void 0},e.getCssPath=function(e){for(var t=[];e.parentNode;){if(e.id){t.unshift("#"+e.id);break}if(e==e.ownerDocument.documentElement)t.unshift(e.tagName);else{for(var r=1,n=e;n.previousElementSibling;n=n.previousElementSibling,r++);t.unshift(e.tagName+":nth-child("+r+")")}e=e.parentNode}return t.join(" > ")},e.getElementPosition=function(e){for(var t=0,r=0;e;){if("BODY"==e.tagName){var n=e.scrollLeft||document.documentElement.scrollLeft,i=e.scrollTop||document.documentElement.scrollTop;t+=e.offsetLeft-n+e.clientLeft,r+=e.offsetTop-i+e.clientTop}else t+=e.offsetLeft-e.scrollLeft+e.clientLeft,r+=e.offsetTop-e.scrollTop+e.clientTop;e=e.offsetParent}return{x:t,y:r}};var r=[];e.onHistoryPushState=function(e,t){if(void 0===t&&(t={}),t=__assign({delay:300},t),r.push(e),1===r.length){if(window.history){var n=window.history.pushState;window.history.pushState=function(e){return"function"==typeof window.history.onpushstate&&window.history.onpushstate({state:e}),n.apply(window.history,arguments)}}var i;window.onpopstate=window.history.onpushstate=function(){clearTimeout(i),i=setTimeout(function(){return r.forEach(function(e){return e()})},t.delay)}}},e.announce=function(e){var t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.style.width="0",t.style.height="0",t.style.overflow="hidden",document.body.insertAdjacentElement("afterbegin",t),setTimeout(function(){t.innerHTML=e},1e3),setTimeout(function(){t.remove()},1e4)},e.queryXPath=function(e,t){var r;void 0===t&&(t=null);var n=document.evaluate(e,t||document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);return(null===n||void 0===n?void 0:n.singleNodeValue)&&(null===(r=null===n||void 0===n?void 0:n.singleNodeValue)||void 0===r?void 0:r.nodeType)===Node.ELEMENT_NODE?n.singleNodeValue:null},e.queryXPathAll=function(e,t){void 0===t&&(t=null);for(var r=document.evaluate(e,t||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),n=[],i=0,o=r.snapshotLength;i0;r.apply=function(e){c.filter(function(e){return e.onPageLoad}).forEach(function(e){return e.observe()})},r.tick=function(e){c.filter(function(e){return e.onDomChanged}).forEach(function(e){return e.observe()})};var c=[{name:"PayoneerAccountSitesCommon",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/payoneer_account_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this;"m8nhTkGuMw"===UserWayWidgetApp.ContextHolder.config.account&&function(){e(t.name,t.path,"sha256-NJHPNbXQL8/yvJDyo23NXe1W44QtML+W756pkztQpYM=",t.remediationHelperName)}()}},{name:"SimplexAccountSitesCommon",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/simplex_account_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this;"DBnq3tIKbX"===UserWayWidgetApp.ContextHolder.config.account&&function(){e(t.name,t.path,"sha256-7a+7Xg3vciW+Mne1lJuwv2A4CANleNvKOmGD12pHInM=",t.remediationHelperName)}()}},{name:"JQueryUiDatepicker",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/jqueryui_datepicker_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){[].slice.call(document.querySelectorAll(".hasDatepicker")).filter(function(e){return!e.getAttribute("data-uw-rm-cpr-jqdp")}).length&&jQuery&&jQuery.ui&&jQuery.ui.datepicker&&e(this.name,this.path,"sha256-fzY74JVqYIY5N5yNkPCLVyawerLdVlcB7cdjZRcRfKs=",this.remediationHelperName)}},{name:"AngularJsAria",remediationHelperName:"ANGULAR_JS_ARIA",path:"widgetapp/2024-10-08-15-28-17/remediation/uw_aria_helper_1728401297040.ts",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this,r=function(){e(t.name,t.path,"sha256-skUcGYwV4ch6x37u65wVQrTZMuCIAUdYJOqbNwN54j0=",t.remediationHelperName)};i.waitUntil(function(){return!!document.querySelector("[ng-app]")},r,{timeout:6e4})}},{name:"slickSlider",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/slick_slider_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".slick-slider")&&e(this.name,this.path,"sha256-HzbaajCSXjYzpdPrxYVWGL41xitmsBp335XXFB2zyNI=",this.remediationHelperName)}},{name:"NavMenu",remediationHelperName:"",path:"//",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=function(){s||(window.jQuery&&window.jQuery.ui&&window.jQuery.ui.version?(i.waitUntil(function(){return!!(window.jQuery&&window.jQuery.ui&&window.jQuery.ui.version&&window.jQuery.ui.menu)&&!!document.querySelector(".navigation .ui-menu-item")},function(){setTimeout(function(){e("JQueryUiMenu","widgetapp/2024-10-08-15-28-17/remediation/jqueryui_menu_helper_1728401297040.js","sha256-vvjYbKhSaii5P+3Ctik4H+LTSHLvHDnybHBFwUSL1uQ=","")},4e3)},{timeout:1e4}),setTimeout(function(){-1===l.indexOf("JQueryUiMenu")&&e("NavMenu",u,"sha256-SO73/mGj4sfIisHGomO9hRtqBTY2B+Uv0r5ORHLUIlU=","")},14100)):-1===l.indexOf("JQueryUiMenu")&&e("NavMenu",u,"sha256-SO73/mGj4sfIisHGomO9hRtqBTY2B+Uv0r5ORHLUIlU=",""))};"complete"===document.readyState?t():window.addEventListener("load",t,!1)}},{name:"OwlCarousel",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/owl_carousel_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".owl-carousel")&&e(this.name,this.path,"sha256-uURQpSwG3FAwlOtP33/NYxsGef08DBKWfqJwwNcAdU0=",this.remediationHelperName)}},{name:"yotpoWidget",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/yotpo_widget_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".yotpo")&&e(this.name,this.path,"sha256-GIuAq4nuA4gneXSAeZ/QDQug8Z/6Xbz2E9fOLGZV5Eg=",this.remediationHelperName)}},{name:"judgeMe",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/judgeme_widget_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".jdgm-star")&&e(this.name,this.path,"sha256-UbU25H+TzYB73LKY1BZpGepuOcR3Zq40WFZ/6Bf9s3s=",this.remediationHelperName)}},{name:"cycleSliderHelper",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/cycle_slider_helper_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".cycle-slide")&&e(this.name,this.path,"sha256-7d6M1UDXQDlMngKZI+asQoUOXwa4BMyeRqUCiDYsxas=",this.remediationHelperName)}},{name:"muiElementsRemediation",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/mui_elements_1728401297040.js",onPageLoad:!0,onDomChanged:!0,observe:function(){["mat-expansion-panel.mat-expansion-panel",".mat-option-text",".mat-option-ripple",".mat-form-field-label-wrapper",".mat-expansion-panel-header-title",".mat-expansion-indicator",".mat-autocomplete-panel",".mat-expansion-panel-header"].some(function(e){return document.querySelector(e)})&&e(this.name,this.path,"sha256-yXI4CdhFr5OhbD13f+WFeyHuPTtGa1K47eJRnqTztlI=",this.remediationHelperName)}},{name:"shortPointHelper",remediationHelperName:"",path:"widgetapp/2024-10-08-15-28-17/remediation/s_p_1728401297040.js",onPageLoad:!0,onDomChanged:!1,observe:function(){['[data-shortpoint-type="row"]'].some(function(e){return document.querySelector(e)})&&e(this.name,this.path,"sha256-wEsvu9mmG0N5053GtFHN4cn5qmr27+xhS3MMUa3MVBM=",this.remediationHelperName)}}]}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var r=e.alt;if(r&&r.trim())return r.trim();var n=e.getAttribute("aria-label");if(n&&n.trim())return n.trim();var i=e.getAttribute("aria-describedby");if(i){var o=t(i);if(o)return o}var a=e.getAttribute("aria-labelledby");if(a){var o=t(a);if(o)return o}return null}function t(e){var t=e.split(" "),r="";return t.forEach(function(e){e=e.trim();var t=document.getElementById(e);r+=t&&t.textContent?t.textContent:""}),r}var r,n=UserWayWidgetApp.addLib("remediation_utils");n.ignoreElementFromHelperProcessingAttr="data-uw-rm-ignore";var i=UserWayWidgetApp.getLib("util"),o=UserWayWidgetApp.getLib("inlineStyling"),a=UserWayWidgetApp.getLib("xpath_search");n.PROCESS_ATTRIBUTES={CER:{popup:{wrapper:"data-uw-cer-popup-wrapper",close:"data-uw-cer-popup-close"},hamburger:{button:"data-uw-cer-hamburger-btn"}}};var u={attrMarker:"uw-remediation",className:"uw-remediation-highlighting",styles:(r={border:"dashed 2px #c00"},r["border-radius"]="3px",r["box-shadow"]="0 0 0 4px yellow, inset 0 0 0 4px yellow",r)};n.sendBackEnd=function(e,t,r){var n={method:"POST",url:"https://api.userway.org/api"+e,header:{"Content-Type":"application/json"},body:{userId:UserWayWidgetApp.ContextHolder.config.services.userId,siteId:UserWayWidgetApp.ContextHolder.config.services.siteId}};return t&&(n.body.elements=t),"object"==typeof r&&Object.keys(r).map(function(e){n.body[e]=r[e]}),i.request(n)},n.highlightElements=function(e,t,r){var n,i,l,s,c=document.querySelectorAll("."+u.className);c.length&&c.forEach(function(e){o.resetInlineStyles(e,u.attrMarker,u.styles),e.classList.remove(u.className)});var d=[];switch(e){case"xpath":var f=a.recursiveXpathSearch(t);d="boolean"!=typeof f?[f]:[];break;case"href":var p=Array.prototype.slice.call(document.querySelectorAll("[href]"));try{for(var h=__values(p),m=h.next();!m.done;m=h.next()){var y=m.value;y.href.toLowerCase().indexOf(t)>-1&&d.push(y)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}break;case"src":var g=Array.prototype.slice.call(document.querySelectorAll("[src]"));try{for(var b=__values(g),v=b.next();!v.done;v=b.next()){var A=v.value;A.src.toLowerCase().indexOf(t)>-1&&d.push(A)}}catch(e){l={error:e}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(l)throw l.error}}break;case"attr":if(r.attrName){var _=document.querySelectorAll("["+r.attrName+'="'+t+'"]');d=Array.prototype.slice.call(_)}}for(var E=0;Er&&(n=[t]),!e()},t.anyChangeOnIterationComplete=function(e){return t.anyChange(e)}}}(),function(){var e=UserWayWidgetApp.addLib("remediation_stopwatch"),t={};e.checkPointHelperStart=function(e,r){r.debugMode&&(t.hasOwnProperty(e)||(t[e]={start:[],"f-start":[],"f-end":[],"a-start":[],"a-end":[],"r-start":[],"r-end":[],end:[]}),t[e].start.push(performance.now()))},e.checkPointHelperEnd=function(e,r){r.debugMode&&t[e].end.push(performance.now())},e.checkPointHelperFilterStart=function(e,r){r.debugMode&&t[e]["f-start"].push(performance.now())},e.checkPointHelperFilterEnd=function(e,r){r.debugMode&&t[e]["f-end"].push(performance.now())},e.checkPointHelperAwaitForResourcesStart=function(e,r){r.debugMode&&t[e]["a-start"].push(performance.now())},e.checkPointHelperAwaitForResourcesEnd=function(e,r){r.debugMode&&t[e]["a-end"].push(performance.now())},e.checkPointHelperDoRemediationStart=function(e,r){r.debugMode&&t[e]["r-start"].push(performance.now())},e.checkPointHelperDoRemediationEnd=function(e,r){r.debugMode&&t[e]["r-end"].push(performance.now())},UserWayWidgetApp.getHelpersPerformance=function(){var e={};return Object.keys(t).forEach(function(r){var n=t[r];e[r]={"1_filter":[],"2_resources":[],"3_remediation":[],"4_total":[]};for(var i=0;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t,r,n=[].slice.call(h.findAllElements(e)),i=n.filter(function(e){var t,r,n=Array.from(e.attributes),i=!1;try{for(var o=__values(n),a=o.next();!a.done;a=o.next()){var u=a.value,l=u.value.toLowerCase();if(-1!==l.indexOf("close")||-1!==l.indexOf("dismiss")){i=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return i}),o=null,a=l().vw,u=Math.round(a/20);try{for(var s=__values(i),c=s.next();!c.done;c=s.next()){var d=c.value,f=d.offsetWidth,p=d.offsetHeight;if(f&&p&&f<=5*u){o=d;break}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o}function t(e,t){var r,n,i=null;try{for(var o=__values(e[0]),a=o.next();!a.done;a=o.next()){var l=a.value,s=new Array(e.length).fill(0);s[0]=1;for(var c=1;c-1&&(s[c]=1)}if(s.every(function(e){return!!e})){i=l;break}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i&&0===e[0].indexOf(i)&&u(i.offsetWidth,t)<5&&(i=null),i}function r(e,t){return e.classList.contains("tt-dropdown-menu")||/datepicker/.test(e.getAttribute("class"))||!!e.id&&"klevuSearchingArea"===e.id||e.hasAttribute("data-uw-rm-ignore")||!!Array.from(document.querySelectorAll("nav")).find(function(t){return e.contains(t)})||!!e.querySelector("[class*='search']")}function n(e){var t=window.getComputedStyle(e),n="none"===t.display,i="fixed"===t.position,o=parseFloat(t.width),a=parseFloat(t.height),l=u(o,document.body.offsetWidth),s=u(a,document.body.offsetHeight);return l>=10&&s>=10&&i&&!n&&o&&a&&!r(e,t)}function i(e){var t=null;if(!e)return t;for(;e&&"BODY"!==e.tagName;){if(n(e)){t=e;break}e=e.parentElement}return t}function o(){return/^([^.]+\.)?manage\..*userway\.(dev|org)$/.test(window.location.host)}function a(){if(114355===f.services.siteId||990479===f.services.siteId||o())return null;var e=l(),r=e.vw,n=e.vh,a=Math.round(r/2),u=Math.round(n/2),s=Math.round(3*r/4),c=Math.round(n/4),d=u+Math.round(n/4),p=Math.round(r/20),h=Math.round(n/20),m=[{x:a,y:u-h},{x:a+p,y:u},{x:a,y:u+h},{x:a-p,y:u}],y=[{x:s,y:u-h},{x:s+p,y:u},{x:s,y:u+h},{x:s-p,y:u}],g=[{x:a,y:c},{x:a-p,y:c+h},{x:a+p,y:c+h}],b=[{x:a,y:d},{x:a-p,y:d-h},{x:a+p,y:d-h}],v=document.elementsFromPoint(m[0].x,m[0].y),A=document.elementsFromPoint(m[1].x,m[1].y),_=document.elementsFromPoint(m[2].x,m[2].y),E=document.elementsFromPoint(m[3].x,m[3].y),w=i(t([v,A,_,E],r));if(w)return w;var x=document.elementsFromPoint(g[0].x,g[0].y),S=document.elementsFromPoint(g[1].x,g[1].y),O=document.elementsFromPoint(g[2].x,g[2].y),I=i(t([x,S,O],r));if(I)return I;var W=document.elementsFromPoint(b[0].x,b[0].y),L=document.elementsFromPoint(b[1].x,b[1].y),C=document.elementsFromPoint(b[2].x,b[2].y),N=i(t([W,L,C],r));if(N)return N;var R=document.elementsFromPoint(y[0].x,y[0].y),k=document.elementsFromPoint(y[1].x,y[1].y),T=document.elementsFromPoint(y[2].x,y[2].y),U=document.elementsFromPoint(y[3].x,y[3].y),P=i(t([R,k,T,U],r));return P||null}function u(e,t){return Math.abs(e-t)/((e+t)/2)*100}function l(){return{vw:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),vh:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}var s=UserWayWidgetApp.addLib("cer_observer"),c=UserWayWidgetApp.getLib("event_emitter"),d=UserWayWidgetApp.getLib("remediation_utils"),f=UserWayWidgetApp.ContextHolder.config,p=UserWayWidgetApp.getLib("remediationConfig").popups,h=UserWayWidgetApp.getLib("util"),m=[];s.apply=function(e){},s.tick=function(t){var r=t.processParameters;r.debugMode&&console.log("CER observer: tick");var n,i=null;if(r.debugMode&&(n=performance.now()),p.enabled){var o=null;try{o=a()}catch(e){r.debugMode&&console.error(e)}if(o){o.setAttribute(d.PROCESS_ATTRIBUTES.CER.popup.wrapper,"");if(-1===m.indexOf(o)){c.emitEvent("UW_CER_POPUP_FOUND",[o]),m.push(o);var u=null;try{u=e(o)}catch(e){r.debugMode&&console.error(e)}u&&u.setAttribute(d.PROCESS_ATTRIBUTES.CER.popup.close,""),c.emitEvent("UW_CER_POPUP_ON",[[o,u]]),r.debugMode&&console.log("CER observer: POPUP found",o,u)}}else m.forEach(function(e){c.emitEvent("UW_CER_POPUP_OFF",[e]),r.debugMode&&console.log("CER observer: POPUP closed",e)}),m=[]}r.debugMode&&(i=performance.now(),console.log("CER observer tick: execution took "+(i-n)+" milliseconds."))}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i-1)return!0;var e=O.commonSettings,t=e.enabled,r=e.config,n=r.mobile,i=r.disabledPages;return!t||(!(!UserWayWidgetApp.ContextHolder.config.isMobile||!n||n.enabled)||!(null===i||void 0===i||!i.some(function(e){var t;return(null===(t=window.location)||void 0===t?void 0:t.href.indexOf(e))>-1})))},H=!!I.remediation&&!D(),M=!1;try{UserWayWidgetApp.setDebugMode=function(e){e?(window.localStorage.setItem("userway-rm-debug","1"),console.log("UserWay Remediation: Debug mode enabled")):window.localStorage.removeItem("userway-rm-debug")},M=window.localStorage.getItem("userway-rm-debug")}catch(e){}var F={iterationInProgress:!1,locationChanged:!0,domChangesEnqueued:[],completedEventFired:!1,debugMode:M},j=H?["REMEDIATION_SCREEN_READER_BASIC"]:[],q=H?[function(e){return U?null:e}("REMEDIATION_KEYBOARD_NAVIGATION"),"REMEDIATION_VAGUE_LINK","REMEDIATION_PDF_DOCUMENTS"].filter(Boolean):[],B=H?["REMEDIATION_HEADING"]:[],V=["REMEDIATION_COLOR_CONTRAST"],G=H?["REMEDIATION_FOCUS_STYLE","REMEDIATION_PER_SITE","REMEDIATION_LABS","REMEDIATION_POPUP"]:[];(function(){return[932691].includes(UserWayWidgetApp.ContextHolder.config.services.siteId)})()&&B.push("REMEDIATION_SOCIAL_SENSITIVITY");var Y=[].concat(j,q,B,V),X=function(){function r(){}return r.prototype.onHelperRemediationStarted=function(t){e(t)},r.prototype.onHelperRemediationCompleted=function(e){e.backEndData&&e.backEndData.items.length&&_.sendBackEnd("/remediation/"+e.backEndData.path,e.backEndData.items,e.backEndData.props),W.put(e),p(e.helperName,W.getHelperPostMessagePayload(e.helperName)),t(e.helperName)},r}();b.HelperCallbackAggregator=new X,(!k||function(){return T.hasAttribute("data-uw-w-kb")}()||UserWayWidgetApp.ContextHolder.config.isMobile)&&u();var K={"get-site-info":f,"remediation-count":c,"all-data":d,"element-is-visible":function(e){var t=JSON.parse(e.data.data),r=t.elements.map(function(e){return[e,_.isElementVisible(e)]});p("element-is-visible",{key:t.key,elements:r})},"element-highlight":function(e){var t=e.data.data.type,r=e.data.data.value?e.data.data.value.toLowerCase():"",n=Object.assign({scroll:!0},e.data.data.options||{});_.highlightElements(t,r,n)},"app-key-nav-enabled":function(e){s(e)},remediation:function(e){var t=e.data.type;W.get()[t]&&p(t,W.getHelperPostMessagePayload(t))},"remediation-check":function(){o()},"add-dynamically":l},J=UserWayWidgetApp.getLib("REMEDIATION_FOCUS_STYLE"),Q={"custom-focus-get":function(e){p("custom-focus-get",J.getFocusStyle())},"custom-focus-update":function(e){e.data&&e.data.data&&J.updateOutlineStyle(e.data)} },z=UserWayWidgetApp.getLib("REMEDIATION_COLOR_CONTRAST"),$={"enable-color-contrast":function(){z.isSmartContrastEnabled()&&z.disableSmartContrast(),z.isEnabled()||(z.enable(),o())},"fix-color-contrast":function(e){e.data&&e.data.data&&(z.fixIssues(e.data.data),o())},"fix-all-color-contrast":function(){z.autofixAllIssues(),o()},"reset-all":function(){z.resetIssuesFixes(),o()},"reset-autofixed":function(){z.resetAutofixed(),o()}},Z=UserWayWidgetApp.getLib("REMEDIATION_VAGUE_LINK"),ee={"vague-link-update":function(e){e.data&&e.data.data&&Z.updateElement(e.data.data)}},te=Object.assign({},K,Q,$,ee),re=function(t){var r=t.data||{};if(r.isUserWay&&("remediation"===r.action||"aria-editor"===r.action)){var n=t.data.type;if(-1!==Object.keys(te).indexOf(n)){e(n);(0,te[n])(t),e(n)}else te.remediation(t)}};E.registerPostMessageListener(re)}();